<!--
    ***** BEGIN LICENSE BLOCK *****
    
    Copyright © 2006–2022 Center for History and New Media
                     George Mason University, Fairfax, Virginia, USA
                     http://zotero.org
    
    This file is part of Zotero.
    
    Zotero is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    
    Zotero is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.
    
    You should have received a copy of the GNU Affero General Public License
    along with Zotero.  If not, see <http://www.gnu.org/licenses/>.
    
    ***** END LICENSE BLOCK *****
-->

<vbox id="zotero-prefpane-cite" onload="event.waitUntil(Zotero_Preferences.Cite.init())">
	<vbox class="main-section" id="styles">
		<groupbox flex="1">
			<!-- HTML needs to be wrapped in an hbox to isolate from XUL box layout -->
			<hbox><label control="styleManager-table"><html:h2>&zotero.preferences.cite.styles.styleManager;</html:h2></label></hbox>
			
			<hbox class="virtualized-table-container" flex="1">
				<html:div id="styleManager"/>
			</hbox>
			<separator class="thin"/>
			<hbox id="styleManager-buttons" align="center">
				<label is="zotero-text-link"
						value="&zotero.preferences.export.getAdditionalStyles;" flex="1"
						onclick="Zotero_Preferences.Cite.openStylesPage(); event.preventDefault()"/>
				<button id="styleManager-delete"
					data-l10n-id="preferences-styleManager-delete-button" data-l10n-args='{"label":"-"}'
					oncommand="Zotero_Preferences.Cite.deleteStyle()"
					disabled="true"/>
				<button data-l10n-id="preferences-styleManager-add-button" data-l10n-args='{"label":"+"}'
					oncommand="Zotero_Preferences.Cite.addStyle()"/>
			</hbox>
		</groupbox>
		
		<groupbox>
			<label><html:h2>&zotero.preferences.citationOptions.caption;</html:h2></label>
			
			<checkbox label="&zotero.preferences.export.citePaperJournalArticleURL;" preference="extensions.zotero.export.citePaperJournalArticleURL" native="true"/>
			<!-- This doesn't wrap without an explicit width, for some reason -->
			<label id="export-citePaperJournalArticleURL" width="45em">
				&zotero.preferences.export.citePaperJournalArticleURL.description;
			</label>
		</groupbox>
		
		<groupbox>
			<label><html:h2>&zotero.general.tools;</html:h2></label>
			
			<hbox>
				<button id="openCSLEdit"
					label="&zotero.preferences.styleEditor;"
					oncommand="window.open('chrome://zotero/content/tools/csledit.xhtml', '_blank', 'chrome,width=950,height=700,resizable')"/>
				<button id="openCSLPreview"
					label="&zotero.preferences.stylePreview;"
					oncommand="window.open('chrome://zotero/content/tools/cslpreview.xhtml', '_blank', 'chrome,width=950,height=700,resizable')"/>
			</hbox>
		</groupbox>
	</vbox>
	<vbox class="main-section" id="wordProcessors">
		<html:h1>&zotero.preferences.cite.wordProcessors;</html:h1>
		
		<vbox id="wordProcessorInstallers"/>

		<checkbox label="&zotero.preferences.cite.wordProcessors.useClassicAddCitationDialog;" preference="extensions.zotero.integration.useClassicAddCitationDialog" native="true"/>
	</vbox>
</vbox>
